package com.aspose.cells;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;

class zbqs {
   private zauk r;
   String a;
   int b;
   ArrayList c;
   String d;
   byte[] e;
   ArrayList f;
   int g;
   int h;
   int i;
   SxRng j;
   String k;
   String l;
   int m;
   boolean n = false;
   boolean o;
   boolean p;
   int q = -1;
   private byte s;
   private static final com.aspose.cells.b.c.a.za t = new com.aspose.cells.b.c.a.za(new String[]{"#DIV/0!", "#N/A", "#NAME?", "#NULL!", "#NUM!", "#REF!", "#VALUE!"});

   zauk a() {
      return this.r;
   }

   zbqs(zauk var1) {
      this.r = var1;
      this.b = 1025;
   }

   zbqs(zauk var1, String var2, boolean var3) {
      if (var2 != null && !"".equals(var2)) {
         this.r = var1;
         if (var3) {
            this.b = 1025;
         } else {
            this.b = 1026;
         }

         this.a = var2;
      } else {
         throw new CellsException(12, "The PivotTable field name is invalid.");
      }
   }

   zbqs(zauk var1, String var2, String var3) {
      if (var2 != null && !"".equals(var2)) {
         this.r = var1;
         this.b = 33829;
         this.a = var2;
         this.d = var3;
         this.f = new ArrayList();
      } else {
         throw new CellsException(12, "The PivotTable field name is invalid.");
      }
   }

   String b() {
      try {
         if (this.e == null) {
            return this.d;
         } else {
            WorksheetCollection var1 = this.r.c.b;
            var1.a((Object)this.r);
            String var2 = var1.b().a(0, this.e, 0, 0, false);
            var1.a((Object)null);
            return var2;
         }
      } catch (Exception var3) {
         return this.d;
      }
   }

   boolean c() {
      return (this.b & '\uffff' & 1) != 0;
   }

   void a(boolean var1) {
      if (var1) {
         this.b &= 65532;
         this.b |= 1;
      } else {
         this.b &= 65532;
         this.b |= 2;
      }

   }

   boolean d() {
      return (this.b & '\uffff' & 512) != 0;
   }

   boolean e() {
      return !this.i() && !this.j();
   }

   boolean f() {
      return (this.b & '\uffff' & 32) != 0;
   }

   void b(boolean var1) {
      if (var1) {
         this.b |= 288;
      } else {
         this.b &= 65439;
      }

   }

   boolean g() {
      return (this.b & '\uffff' & 64) != 0;
   }

   void c(boolean var1) {
      if (var1) {
         this.b |= 352;
      } else {
         this.b &= 65471;
      }

   }

   boolean h() {
      return (this.b & '\uffff' & 352) == 288;
   }

   void d(boolean var1) {
      if (var1) {
         this.b &= 65471;
         this.b |= 288;
      }

   }

   boolean i() {
      return (this.b & '\uffff' & 128) != 0;
   }

   void e(boolean var1) {
      if (var1) {
         this.b |= 128;
      } else {
         this.b &= 65407;
      }

   }

   boolean j() {
      return (this.b & '\uffff' & 2048) != 0;
   }

   void f(boolean var1) {
      if (var1) {
         this.b |= 2304;
         this.b &= 64511;
      } else {
         this.b &= 63487;
      }

   }

   boolean k() {
      boolean var1 = this.i() || this.f();
      return var1;
   }

   boolean l() {
      return (this.b & '\uffff' & 8) != 0;
   }

   boolean m() {
      return (this.b & '\uffff' & '耀') != 0;
   }

   void g(boolean var1) {
      if (var1) {
         this.b |= 32768;
      } else {
         this.b &= 32767;
      }

   }

   boolean n() {
      return (this.b & '\uffff' & 16) != 0;
   }

   void h(boolean var1) {
      if (var1) {
         this.b |= 16;
      } else {
         this.b &= 65519;
      }

   }

   boolean o() {
      return (this.b & '\uffff' & 2464) == 2304;
   }

   boolean p() {
      return (this.b & '\uffff' & 2464) == 288;
   }

   boolean q() {
      return (this.b & '\uffff' & 2464) == 128;
   }

   boolean r() {
      return !this.p() && !this.q() && !this.o();
   }

   boolean s() {
      return this.i() || this.u() && (this.j() || this.f());
   }

   boolean t() {
      return (this.s & 255 & 16) != 0;
   }

   void i(boolean var1) {
      if (var1) {
         this.s = (byte)(this.s | 16);
      } else {
         this.s = (byte)(this.s & 239);
      }

   }

   boolean u() {
      if (this.c != null) {
         for(int var1 = 0; var1 < this.c.size(); ++var1) {
            zbmb var2 = (zbmb)this.c.get(var1);
            if (var2 == null || var2.a == null) {
               return true;
            }
         }
      }

      return (this.s & 255 & 1) != 0;
   }

   void j(boolean var1) {
      if (var1) {
         this.s = (byte)(this.s | 1);
      } else {
         this.s = (byte)(this.s & 254);
      }

   }

   boolean v() {
      return this.u() && (this.c == null || this.c.size() == 1);
   }

   private int y() {
      int var1 = 0;
      if (this.c == null) {
         return var1;
      } else {
         Iterator var2 = this.c.iterator();

         while(true) {
            while(var2.hasNext()) {
               Object var3 = var2.next();
               if (var3 == null) {
                  var1 += 4;
               } else {
                  Object var4 = ((zbmb)var3).a;
                  if (var4 == null) {
                     var1 += 4;
                  } else if (var4 instanceof String) {
                     boolean var5 = false;
                     boolean[] var6 = new boolean[]{var5};
                     boolean var7 = zsk.b((String)var4, var6);
                     var5 = var6[0];
                     if (var7 && !var5) {
                        var1 += 6;
                     } else {
                        var1 += 6 + zakq.e((String)var4);
                     }
                  } else if (var4 instanceof Double) {
                     var1 += 12;
                  } else if (var4 instanceof Short) {
                     var1 += 6;
                  } else if (var4 instanceof Integer) {
                     var1 += 12;
                  } else if (var4 instanceof Long) {
                     var1 += 12;
                  } else if (var4 instanceof DateTime) {
                     var1 += 12;
                  } else if (var4 instanceof Boolean) {
                     var1 += 6;
                  }
               }
            }

            return var1;
         }
      }
   }

   private int a(ArrayList var1) {
      int var2 = 0;
      if (var1 == null) {
         return var2;
      } else {
         Iterator var3 = var1.iterator();

         while(true) {
            while(var3.hasNext()) {
               Object var4 = var3.next();
               if (var4 == null) {
                  var2 += 4;
               } else {
                  Object var5 = ((zbmb)var4).a;
                  if (var5 == null) {
                     var2 += 4;
                  } else if (var5 instanceof String) {
                     boolean var6 = false;
                     boolean[] var7 = new boolean[]{var6};
                     boolean var8 = zsk.b((String)var5, var7);
                     var6 = var7[0];
                     if (var8 && !var6) {
                        var2 += 6;
                     } else {
                        var2 += 6 + zakq.e((String)var5);
                     }
                  } else if (var5 instanceof Double) {
                     var2 += 12;
                  } else if (var5 instanceof Short) {
                     var2 += 6;
                  } else if (var5 instanceof Integer) {
                     var2 += 12;
                  } else if (var5 instanceof Long) {
                     var2 += 12;
                  } else if (var5 instanceof DateTime) {
                     var2 += 12;
                  } else if (var5 instanceof Boolean) {
                     var2 += 6;
                  }
               }
            }

            return var2;
         }
      }
   }

   private int z() {
      int var1 = 0;
      if (this.j.d == null) {
         return var1;
      } else {
         Iterator var2 = this.j.d.iterator();

         while(true) {
            while(var2.hasNext()) {
               Object var3 = var2.next();
               if (var3 == null) {
                  var1 += 4;
               } else {
                  Object var4 = ((zbmb)var3).a;
                  if (var4 == null) {
                     var1 += 4;
                  } else if (var4 instanceof String) {
                     boolean var5 = false;
                     boolean[] var6 = new boolean[]{var5};
                     boolean var7 = zsk.b((String)var4, var6);
                     var5 = var6[0];
                     if (var7 && !var5) {
                        var1 += 6;
                     } else {
                        var1 += 6 + zakq.e((String)var4);
                     }
                  } else if (var4 instanceof Double) {
                     var1 += 12;
                  } else if (var4 instanceof Short) {
                     var1 += 6;
                  } else if (var4 instanceof Integer) {
                     var1 += 12;
                  } else if (var4 instanceof Long) {
                     var1 += 12;
                  } else if (var4 instanceof DateTime) {
                     var1 += 12;
                  } else if (var4 instanceof Boolean) {
                     var1 += 6;
                  }
               }
            }

            return var1;
         }
      }
   }

   void a(byte[] var1, ArrayList var2) {
      int var3 = 0;
      Iterator var4 = var2.iterator();

      while(var4.hasNext()) {
         Object var5 = var4.next();
         if (var5 == null) {
            var3 += a(var1, var3);
         } else {
            Object var6 = ((zbmb)var5).a;
            if (var6 == null) {
               var3 += a(var1, var3);
            } else if (var6 instanceof String) {
               String var7 = (String)var6;
               switch(t.a(var7)) {
               case 0:
                  var3 += a(var1, var3, (byte)7);
                  break;
               case 1:
                  var3 += a(var1, var3, (byte)42);
                  break;
               case 2:
                  var3 += a(var1, var3, (byte)29);
                  break;
               case 3:
                  var3 += a(var1, var3, (byte)0);
                  break;
               case 4:
                  var3 += a(var1, var3, (byte)36);
                  break;
               case 5:
                  var3 += a(var1, var3, (byte)23);
                  break;
               case 6:
                  var3 += a(var1, var3, (byte)15);
                  break;
               default:
                  var3 += a(var1, var3, var7);
               }
            } else if (var6 instanceof Double) {
               var3 += a(var1, var3, (Double)var6);
            } else if (var6 instanceof Short) {
               var3 += a(var1, var3, (Short)var6);
            } else if (var6 instanceof Integer) {
               var3 += a(var1, var3, (double)(Integer)var6);
            } else if (var6 instanceof Long) {
               var3 += a(var1, var3, (double)(Long)var6);
            } else if (var6 instanceof DateTime) {
               var3 += a(var1, var3, (DateTime)var6);
            } else if (var6 instanceof Boolean) {
               var3 += a(var1, var3, (Boolean)var6);
            }
         }
      }

   }

   void a(zqa var1) throws Exception {
      zbqt var2 = new zbqt(this);
      var2.a(var1);
      zbqu var3 = new zbqu(this.g);
      var3.a(var1);
      zbqv var4;
      if (this.m()) {
         var4 = new zbqv(this);
         var4.a(var1);
         Iterator var9 = this.f.iterator();

         while(var9.hasNext()) {
            zbrf var10 = (zbrf)var9.next();
            zbrj var11 = new zbrj(var10);
            var11.a(var1);
         }

      } else {
         var4 = null;
         byte[] var8;
         if (this.n()) {
            if (this.j == null || this.j.d == null) {
               return;
            }

            if (this.j != null) {
               var8 = new byte[this.z()];
               this.a(var8, this.j.d);
               var1.a(var8);
            }

            zbrn var5 = new zbrn(this.j);
            var5.a(var1);
            ArrayList var6 = new ArrayList();
            zbmb var7;
            if (this.j.c == 0) {
               var7 = new zbmb();
               var7.a = this.j.h;
               com.aspose.cells.b.a.a.ze.a(var6, (Object)var7);
               var7 = new zbmb();
               var7.a = this.j.i;
               com.aspose.cells.b.a.a.ze.a(var6, (Object)var7);
               var7 = new zbmb();
               var7.a = this.j.j;
               com.aspose.cells.b.a.a.ze.a(var6, (Object)var7);
               com.aspose.cells.b.a.a.ze.a(var6, (Collection)this.c);
            } else {
               var7 = new zbmb();
               var7.a = this.j.f;
               com.aspose.cells.b.a.a.ze.a(var6, (Object)var7);
               var7 = new zbmb();
               var7.a = this.j.g;
               com.aspose.cells.b.a.a.ze.a(var6, (Object)var7);
               var7 = new zbmb();
               var7.a = (short)((int)this.j.j);
               com.aspose.cells.b.a.a.ze.a(var6, (Object)var7);
               if (this.c != null) {
                  com.aspose.cells.b.a.a.ze.a(var6, (Collection)this.c);
               }
            }

            var8 = new byte[this.a(var6)];
            this.a(var8, var6);
            var1.a(var8);
         } else {
            if (this.c == null) {
               return;
            }

            var8 = new byte[this.y()];
            this.a(var8, this.c);
            var1.a(var8);
         }

      }
   }

   int w() {
      int var1 = 0;

      for(Iterator var2 = this.r.p.iterator(); var2.hasNext(); ++var1) {
         zbqs var3 = (zbqs)var2.next();
         if (var3 == this) {
            return var1;
         }
      }

      return 0;
   }

   void a(int var1) {
      this.i = var1;
   }

   static int a(byte[] var0, int var1, byte var2) {
      var0[var1++] = -53;
      var0[var1++] = 0;
      var0[var1++] = 2;
      var0[var1++] = 0;
      var0[var1++] = var2;
      var0[var1++] = 0;
      return 6;
   }

   static int a(byte[] var0, int var1) {
      var0[var1++] = -49;
      var0[var1++] = 0;
      var0[var1++] = 0;
      var0[var1++] = 0;
      return 4;
   }

   static int a(byte[] var0, int var1, String var2) {
      int var3 = var1;
      var0[var1++] = -51;
      var0[var1++] = 0;
      var1 += 2;
      int var4 = var2.length();
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var4), 0, var0, var1, 2);
      var1 += 2;
      boolean var5 = false;
      if ("".equals(var2)) {
         System.arraycopy(com.aspose.cells.b.a.zc.a((short)3), 0, var0, var3 + 2, 2);
         return 7;
      } else {
         int var6 = zco.a(var0, var1, var2);
         System.arraycopy(com.aspose.cells.b.a.zc.a((short)(2 + var6)), 0, var0, var3 + 2, 2);
         return 4 + var6 + 2;
      }
   }

   static int a(byte[] var0, int var1, double var2) {
      var0[var1++] = -55;
      var0[var1++] = 0;
      var0[var1++] = 8;
      var0[var1++] = 0;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, var0, var1, 8);
      return 12;
   }

   static int a(byte[] var0, int var1, short var2) {
      var0[var1++] = -52;
      var0[var1++] = 0;
      var0[var1++] = 2;
      var0[var1++] = 0;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, var0, var1, 2);
      return 6;
   }

   static int a(byte[] var0, int var1, boolean var2) {
      var0[var1++] = -54;
      var0[var1++] = 0;
      var0[var1++] = 2;
      var0[var1++] = 0;
      var0[var1++] = (byte)(var2 ? 1 : 0);
      var0[var1++] = 0;
      return 6;
   }

   static int a(byte[] var0, int var1, DateTime var2) {
      var0[var1++] = -50;
      var0[var1++] = 0;
      var0[var1++] = 8;
      var0[var1++] = 0;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getYear()), 0, var0, var1, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getMonth()), 0, var0, var1 + 2, 2);
      var0[var1 + 4] = (byte)var2.getDay();
      var0[var1 + 5] = (byte)var2.getHour();
      var0[var1 + 6] = (byte)var2.getMinute();
      var0[var1 + 7] = (byte)var2.getSecond();
      return 12;
   }

   String[] x() {
      String[] var1 = new String[3];
      ArrayList var2 = new ArrayList();
      ArrayList var3 = new ArrayList();
      Iterator var4 = this.c.iterator();

      while(var4.hasNext()) {
         Object var5 = var4.next();
         zbmb var6 = (zbmb)var5;
         if (var6.a instanceof DateTime) {
            var1[2] = "Calendar";
            com.aspose.cells.b.a.a.ze.a(var2, (Object)((DateTime)var6.a));
         } else if (var6.a instanceof Integer) {
            var1[2] = "Number";
            com.aspose.cells.b.a.a.ze.a(var3, (Object)((double)(Integer)((Integer)var6.a)));
         } else if (var6.a instanceof Double) {
            var1[2] = "Number";
            com.aspose.cells.b.a.a.ze.a(var3, (Object)((Double)((Double)var6.a)));
         }
      }

      if (var1[2] != null && var1[2].equals("Calendar")) {
         Collections.sort(var2);
         String var7 = ((DateTime)var2.get(0)).a("yyyy-MM-dd\\THH:mm:ss.fff", com.aspose.cells.b.a.c.za.b());
         String var8 = ((DateTime)var2.get(var2.size() - 1)).a("yyyy-MM-dd\\THH:mm:ss.fff", com.aspose.cells.b.a.c.za.b());
         var1[0] = var7;
         var1[1] = var8;
      } else if (var1[2] != null && var1[2].equals("Number")) {
         Collections.sort(var3);
         var1[0] = com.aspose.cells.b.a.zr.a(var3.get(0));
         var1[1] = com.aspose.cells.b.a.zr.a(var3.get(var3.size() - 1));
      }

      return var1;
   }

   Object[] a(SxRng var1) {
      String[] var2 = this.x();
      if (var2[2] != null) {
         if (var2[2].equals("Calendar")) {
            Object[] var12 = new Object[]{"<" + com.aspose.cells.b.a.zv.d(var2[0], 'T')[0], "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ">" + com.aspose.cells.b.a.zv.d(var2[1], 'T')[0]};
            return var12;
         }

         if (var2[2].equals("Number")) {
            double var3 = zase.B(var2[0]);
            double var5 = zase.B(var2[1]);
            double var7 = 0.1D;
            if (var2[0].indexOf(46) == -1 || var2[0].indexOf(46) == -1) {
               var7 = 1.0D;
            }

            if (var5 - var3 <= 2.0D) {
               var7 = 0.1D;
            }

            var1.j = var7;
            int var9 = (int)((var5 - var3) / var7) + 2;
            Object[] var10 = new Object[var9];
            var10[0] = "<" + com.aspose.cells.b.a.zn.b(var3);
            int var11;
            if (var7 == 1.0D) {
               for(var11 = 1; var11 < var9 - 1; ++var11) {
                  var5 = var3 + var7;
                  if (var11 == var9 - 2) {
                     var10[var11] = com.aspose.cells.b.a.zn.b(var3) + "-" + com.aspose.cells.b.a.zn.b(var5);
                  } else {
                     var10[var11] = com.aspose.cells.b.a.zn.b(var3) + "-" + com.aspose.cells.b.a.zn.b(var5 - 1.0D);
                  }

                  var3 = var5;
               }
            } else {
               for(var11 = 1; var11 < var9 - 1; ++var11) {
                  var5 = var3 + var7;
                  var10[var11] = com.aspose.cells.b.a.zn.b(var3) + "-" + com.aspose.cells.b.a.zn.b(var5);
                  var3 = var5;
               }
            }

            var10[var9 - 1] = ">" + com.aspose.cells.b.a.zn.b(var5);
            return var10;
         }
      }

      return null;
   }

   Object[] a(String var1, String var2, ArrayList var3, double var4, int var6) {
      String var8;
      String var9;
      int var13;
      Object[] var14;
      int var15;
      String[] var20;
      int var23;
      int var24;
      String[] var25;
      int var26;
      if (var3.size() == 1) {
         if (var6 == 4) {
            Object[] var18 = new Object[368];
            var8 = "<" + com.aspose.cells.b.a.zv.d(var1, 'T')[0];
            var9 = ">" + com.aspose.cells.b.a.zv.d(var2, 'T')[0];
            var18[0] = var8;
            var20 = new String[]{"Jan", "Mar", "May", "Jul", "Aug", "Oct", "Dec"};
            var23 = 0;

            for(var24 = 0; var24 < var20.length; ++var24) {
               if (var24 == 1) {
                  var23 += 29;
               } else if (var24 != 0 && var24 != 4) {
                  var23 += 30;
               }

               for(var13 = 1; var13 <= 31; ++var13) {
                  ++var23;
                  var18[var23] = var13 + "-" + var20[var24];
               }
            }

            var25 = new String[]{"Apr", "Jun", "Sep", "Nov"};
            var23 = 60;

            for(var13 = 0; var13 < var25.length; ++var13) {
               if (var13 != 2) {
                  var23 += 31;
               } else {
                  var23 += 62;
               }

               for(var26 = 1; var26 <= 30; ++var26) {
                  ++var23;
                  var18[var23] = var26 + "-" + var25[var13];
               }
            }

            var23 = 31;

            for(var13 = 1; var13 <= 29; ++var13) {
               ++var23;
               var18[var23] = var13 + "-" + "Feb";
            }

            var18[367] = var9;
            return var18;
         }

         if (var6 == 0) {
            double var17 = zase.B(var1);
            double var22 = zase.B(var2);
            double var28 = var4;
            boolean var27 = false;
            if ((int)((var22 - var17) % var4) != 0) {
               var13 = (int)((var22 - var17) / var4) + 1 + 2;
            } else {
               var13 = (int)((var22 - var17) / var4) + 2;
            }

            var14 = new Object[var13];
            var14[0] = "<" + com.aspose.cells.b.a.zn.b(var17);

            for(var15 = 1; var15 < var13 - 1; ++var15) {
               var22 = var17 + var28;
               var14[var15] = com.aspose.cells.b.a.zn.b(var17) + "-" + com.aspose.cells.b.a.zn.b(var22 - 1.0D);
               var17 = var22;
            }

            var14[var13 - 1] = ">" + com.aspose.cells.b.a.zn.b(var22);
            return var14;
         }
      }

      String var7 = "<" + com.aspose.cells.b.a.zv.d(var1, 'T')[0];
      var8 = ">" + com.aspose.cells.b.a.zv.d(var2, 'T')[0];
      Object[] var19;
      int var21;
      switch(var6) {
      case 1:
      case 2:
         var19 = new Object[62];
         var19[0] = var7;

         for(var21 = 0; var21 < 60; ++var21) {
            if (var21 < 10) {
               var19[var21 + 1] = ":0" + var21;
            } else {
               var19[var21 + 1] = ":" + var21;
            }
         }

         var19[61] = var8;
         return var19;
      case 3:
         var19 = new Object[26];
         var19[0] = var7;
         var19[1] = "12 AM";

         for(var21 = 1; var21 < 12; ++var21) {
            var19[var21 + 1] = var21 + " AM";
         }

         var19[13] = "12 PM";

         for(var21 = 1; var21 < 12; ++var21) {
            var19[var21 + 13] = var21 + " PM";
         }

         var19[25] = var8;
         return var19;
      case 4:
         var19 = new Object[368];
         var19[0] = var7;
         var20 = new String[]{"Jan", "Mar", "May", "Jul", "Aug", "Oct", "Dec"};
         var23 = 0;

         for(var24 = 0; var24 < var20.length; ++var24) {
            if (var24 == 1) {
               var23 += 29;
            } else if (var24 != 0 && var24 != 4) {
               var23 += 30;
            }

            for(var13 = 1; var13 <= 31; ++var13) {
               ++var23;
               var19[var23] = var13 + "-" + var20[var24];
            }
         }

         var25 = new String[]{"Apr", "Jun", "Sep", "Nov"};
         var23 = 60;

         for(var13 = 0; var13 < var25.length; ++var13) {
            if (var13 != 2) {
               var23 += 31;
            } else {
               var23 += 62;
            }

            for(var26 = 1; var26 <= 30; ++var26) {
               ++var23;
               var19[var23] = var26 + "-" + var25[var13];
            }
         }

         var23 = 31;

         for(var13 = 1; var13 <= 29; ++var13) {
            ++var23;
            var19[var23] = var13 + "-" + "Feb";
         }

         var19[367] = var8;
         return var19;
      case 5:
         var19 = new Object[]{var7, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", var8};
         return var19;
      case 6:
         var19 = new Object[]{var7, "Qtr1", "Qtr2", "Qtr3", "Qtr4", var8};
         return var19;
      case 7:
         var9 = "<" + com.aspose.cells.b.a.zv.d(var1, 'T')[0];
         String var10 = ">" + com.aspose.cells.b.a.zv.d(var2, 'T')[0];
         boolean var11 = false;
         boolean var12 = false;

         try {
            var23 = DateTime.a(com.aspose.cells.b.a.zv.d(var1, 'T')[0]).getYear();
            var24 = DateTime.a(com.aspose.cells.b.a.zv.d(var2, 'T')[0]).getYear();
         } catch (Exception var16) {
            throw new IllegalArgumentException("Invalid start end years.");
         }

         var13 = var24 - var23 + 1 + 2;
         var14 = new Object[var13];
         var14[0] = var9;

         for(var15 = 1; var15 < var13 - 1; ++var15) {
            var14[var15] = com.aspose.cells.b.a.zo.a(var23);
            ++var23;
         }

         var14[var13 - 1] = var10;
         return var14;
      default:
         return null;
      }
   }
}
